import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

import Home from '../views/Home.vue'
import Second from '../views/Second.vue'
import Son1 from '../views/Son/Son1'
import Son2 from '../views/Son/Son2'
import Son3 from '../views/Son/Son3'
import Tree1 from '../views/Tree/tree1'
import Tree2 from '../views/Tree/tree2'
import Tree3 from '../views/Tree/tree3'
const routes = [
  {
    path: '/',
    component: Home,
    children: [
      { path: 'Son1', component: Son1 },
      { path: 'Son2', component: Son2 },
      { path: 'Son3', component: Son3 },
    ]
  },
  {
    path: '/second',
    component: Second,
    children: [
      { path: '/Tree1', component: Tree1 },
      { path: '/Tree2', component: Tree2 },
      { path: '/Tree3', component: Tree3 },
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
